<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCmcSystemConfigTabTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cmc_system_config_tab', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('pid')->default('0')->comment('上级分类id');
            $table->string('title')->default('')->comment('配置分类名称');
            $table->string('eng_title')->default('')->comment('配置分类英文名称');
            $table->unsignedTinyInteger('status')->default('1')->comment('配置分类状态');
            $table->unsignedTinyInteger('info')->default('0')->comment('配置分类是否显示');
            $table->string('icon')->nullable()->comment('图标');
            $table->integer('type')->default('0')->nullable()->comment('配置类型');
            $table->integer('sort')->default('0')->comment('排序');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cmc_system_config_tab');
    }
}
